package com.xyoto.community.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.xyoto.community.po.UserPO;
import io.swagger.annotations.ApiModel;
import lombok.Data;

/**
 * Author: 廖振辉
 * Date: 2021/11/22
 * Description: 用户排行vo
 */
@Data
@ApiModel("用户排行vo")
public class UserRankVO {
    private Integer rank;

    @JsonProperty("user")
    private UserPO userPO;

    public UserRankVO() {
        // 默认排名
        this.rank = 9999;
    }

    public UserRankVO(Integer rank, UserPO userPO) {
        this.rank = rank;
        this.userPO = userPO;
    }
}
